<%@ page import="java.util.Date" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%String path = request.getContextPath();%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>

<div class="search-wrap">
    <div class="search-content">
        <form method="post">
            <table class="search-tab">
                <tr>
                    <th width="70">搜索:</th>
                    <td><input class="common-text" placeholder="${requestScope.title}" name="keywords"  id="matter" type="text"></td>
                    <td><input class="btn btn-primary btn2" name="sub" value="查询" id="seek" type="button"></td>
                </tr>
            </table>
        </form>
    </div>
</div>

<div class="search-wrap">
    <div class="search-content">
    </div>
</div>
<div class="result-wrap">
    <form name="myform" id="myform" method="post">
        <div class="result-title">
            <div class="result-list">
            </div>
        </div>
        <table class="result-tab" width="100%">
            <tr>
                <th class="tc" width="5%"><input class="allChoose" name="" type="checkbox">排序</th>
                <th>ID</th>
                <th>用户名</th>
                <th>真实姓名</th>
                <th>年龄</th>
                <th>联系方式</th>
                <th>注册时间</th>
                <th>状态</th>
                <th>操作</th>
            </tr>
            <c:forEach items="${requestScope.seachVolunteer.list}" var="volunteer" varStatus="stat">
                <tr id="tr${volunteer.id}">
                    <td class="tc"><input name="id[]" value="59" type="checkbox">${stat.index+1}</td>
                    <td>
                        <input name="ids[]" value="59" type="hidden">
                        <input class="common-input sort-input"  value="${volunteer.id}" type="text">
                    </td>
                    <td>${volunteer.username}</td>
                    <td style="color: #0e90d2" id="name" data-id="${volunteer.id}">${volunteer.name}</td>
                    <td>${volunteer.birthday}</td>
                    <td>${volunteer.phone}</td>

                        <%--<td>${volunteer.registerTime}</td>--%>
                    <td><fmt:formatDate value="${volunteer.registerTime}" pattern="yyyy-MM-dd"/></td>
                    <td>
                        <c:if test="${volunteer.enable eq true}">
                            <a style="color: greenyellow" class="link-del"  data-id="${volunteer.id}">正常使用</a>
                        </c:if>
                        <c:if test="${volunteer.enable eq false}">
                            <a style="color: red" class="link-del"  data-id="${volunteer.id}">账号封停</a>
                        </c:if>
                    </td>
                    <td>
                        <c:if test="${volunteer.enable eq true}">
                            <a class="link-del"  data-id="${volunteer.id}">注销账户</a>
                        </c:if>
                        <c:if test="${volunteer.enable eq false}">
                            <a class="link-dell"  data-id="${volunteer.id}">恢复账户</a>
                        </c:if>
                    </td>
                </tr>
            </c:forEach>
        </table>
        <div class="list-page">
            <c:forEach  items="${requestScope.seachVolunteer.navigatepageNums}" var="i">
                <a class="seachPage" data-id="${i}">${i}</a>
            </c:forEach>
        </div>
    </form>
</div>